<?php /* Smarty version 2.6.26, created on 2012-10-24 14:25:16
         compiled from ../templates/pc%5Ccharts.html */ ?>
<h4>売上ランキング</h4>
<ul id="ranking">
<?php unset($this->_sections['sec']);
$this->_sections['sec']['name'] = 'sec';
$this->_sections['sec']['start'] = (int)0;
$this->_sections['sec']['loop'] = is_array($_loop=$this->_tpl_vars['charts_data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['sec']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['sec']['show'] = true;
$this->_sections['sec']['max'] = $this->_sections['sec']['loop'];
if ($this->_sections['sec']['start'] < 0)
    $this->_sections['sec']['start'] = max($this->_sections['sec']['step'] > 0 ? 0 : -1, $this->_sections['sec']['loop'] + $this->_sections['sec']['start']);
else
    $this->_sections['sec']['start'] = min($this->_sections['sec']['start'], $this->_sections['sec']['step'] > 0 ? $this->_sections['sec']['loop'] : $this->_sections['sec']['loop']-1);
if ($this->_sections['sec']['show']) {
    $this->_sections['sec']['total'] = min(ceil(($this->_sections['sec']['step'] > 0 ? $this->_sections['sec']['loop'] - $this->_sections['sec']['start'] : $this->_sections['sec']['start']+1)/abs($this->_sections['sec']['step'])), $this->_sections['sec']['max']);
    if ($this->_sections['sec']['total'] == 0)
        $this->_sections['sec']['show'] = false;
} else
    $this->_sections['sec']['total'] = 0;
if ($this->_sections['sec']['show']):

            for ($this->_sections['sec']['index'] = $this->_sections['sec']['start'], $this->_sections['sec']['iteration'] = 1;
                 $this->_sections['sec']['iteration'] <= $this->_sections['sec']['total'];
                 $this->_sections['sec']['index'] += $this->_sections['sec']['step'], $this->_sections['sec']['iteration']++):
$this->_sections['sec']['rownum'] = $this->_sections['sec']['iteration'];
$this->_sections['sec']['index_prev'] = $this->_sections['sec']['index'] - $this->_sections['sec']['step'];
$this->_sections['sec']['index_next'] = $this->_sections['sec']['index'] + $this->_sections['sec']['step'];
$this->_sections['sec']['first']      = ($this->_sections['sec']['iteration'] == 1);
$this->_sections['sec']['last']       = ($this->_sections['sec']['iteration'] == $this->_sections['sec']['total']);
?>
<?php if ($this->_sections['sec']['first']): ?>
<li class="rank_no1">
<p id="rank_1">第1位</p>
<a href="" title="<?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_name']; ?>
"><img src="pc/images/490.jpg" /></a>
<br clear="all" />
<h5><a href=""><?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_name']; ?>
</a></h5>
<em>定価：<?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_unitprice']; ?>
円（税込）</em>
</li>
<?php elseif ($this->_sections['sec']['index'] == 1): ?>
<li>
<p id="rank_2">第2位</p>
<a href="" title="<?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_name']; ?>
"><img src="pc/images/484.jpg" /></a>
<br clear="all" />
<h5><a href=""><?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_name']; ?>
</a></h5>
<em>定価：<?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_unitprice']; ?>
円（税込）</em>
</li>
<?php elseif ($this->_sections['sec']['index'] == 2): ?>
<li>
<p id="rank_3">第3位</p>
<a href="" title="<?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_name']; ?>
"><img src="pc/images/485.jpg" /></a>
<br clear="all" />
<h5><a href=""><?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_name']; ?>
</a></h5>
<em>定価：<?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_unitprice']; ?>
円（税込）</em>
</li>
<?php else: ?>
<li>
   第<?php echo $this->_sections['sec']['index']+1; ?>
位
<h5><a href=""><?php echo $this->_tpl_vars['charts_data'][$this->_sections['sec']['index']]['goods_name']; ?>
</a></h5>
</li>
<?php endif; ?>

<?php endfor; endif; ?>
</ul>